package com.cloudkinto.service.email;

import javax.mail.Session;
import javax.mail.Transport;

/**
 * Author Administrator
 *
 * @Des
 * @Version
 * @Date 2019/9/26
 */
public interface MailSenderService {

    void sendEmail(String title, String content, String address);

    void transportClose(Transport ts);

    Transport initRakutenMailTransport(Session session, String id, String key);

    Session initRakutenMailSession();

    Transport initRakutenMailTransport(Session session);

    Session initMailSession();

    Transport initMailTransport(Session session);


    void sendEmailRakuten(Session session, Transport ts, String title, String content, String address, String from, String contentCodeType);
    void sendEmailRakuten(Session session, Transport ts, String title, String content, String address, String from, String cc, String contentCodeType);

    void sendEmail(Session session, Transport ts, String title, String content, String address);

}